package com.sykj.util;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @program: spirngboot_Demo
 * @description:
 * @author: qiaoli
 * @create: 2020-07-11 09:45
 */
@Component
public class PointConsumer {
    //监听的队列名
    @RabbitListener(queues = "test")
    public void processOne(String name) {
        System.out.println("test：" + name);
    }

}
